package action;



import object.LoginPage;
import org.openqa.selenium.WebDriver;
import org.springframework.stereotype.Service;
import utility.WaitElementUtil;


@Service
public class LoginActions extends WaitElementUtil {

		LoginPage lp;
	/*
	* input username
	* */
	public void enterName(String name,WebDriver driver){
		lp = new LoginPage(driver);
		waitVisit(driver,lp.jobNumber).sendKeys(name);

}

	/*
	* input password
	* */
	public void enterPassword(String password,WebDriver driver){
			lp = new LoginPage(driver);
			waitVisit(driver,lp.userPwd).sendKeys(password);
	}

	/*
	* click login button
	* */
	public void clickLogin_Button(WebDriver driver){
		lp = new LoginPage(driver);
		waitVisit(driver,lp.gLogin_Button).click();
	}




}
